<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<%@ page trimDirectiveWhitespaces="true"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加trip</title>
</head>
<body>
<h2>添加旅游线路</h2>
<form action="${pageContext.request.contextPath }/admin/addtrip.action" method="post" enctype="multipart/form-data">
<table border="1">
<tr>
	<td>线路名称</td>
	<td><input type="text" name="tripname"/>
	</td>
 </tr>
 <tr>
	<td>类型</td>
	<td><select name="cid">
		<c:forEach items="${catlist }" var="c">
			<option value="${c.cid }">${c.cname }</option>
		</c:forEach>
	</select>
	</td>
 </tr>
 <tr>
	<td>图片</td>
	<td><input name="trippic" type="file" />
	</td>
 </tr>
  <tr>
	<td>描述</td>
	<td>
	<textarea name="tripdesc" rows="3">请填写线路描述</textarea>
	</td>
 </tr>
 <tr><td align="center" colspan="2"><input type="submit" value="提交"/></td></tr>
</table>
</form>
</body>
</html>